package com.sluggard.mp.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(name="分页查询请求参数",description = "分页查询请求参数")
public class PageQueryReq extends ListQueryReq{

    @Schema(description = "页码 默认为1", requiredMode = Schema.RequiredMode.REQUIRED, defaultValue = "1")
    private int pageNo = 1;

    @Schema(description = "分页大小 默认为10", requiredMode = Schema.RequiredMode.REQUIRED, defaultValue = "10")
    private int pageSize = 10;

}
